package 时间API;

import org.junit.Test;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * Description
 *
 * @Author: Heiffeng
 * @Date: 2022/2/15 14:03
 */
public class DateTimeFormatter测试 {


    @Test
    public void format(){
        System.out.println(
                LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy.MM.dd HH:mm:ss"))
        );
    }
}
